package cn.liontalk.ProxyPattern;

/**
 * @author: 周哲
 * @package: cn.liontalk.ProxyPattern
 * @description:
 * @date: 2019/3/11 22:05
 * @version: V1.0
 */
public class AgentProxy implements ManagerMoney {

    private Agent agent;

    public AgentProxy(Agent agent) {
        this.agent = agent;
    }

    @Override
    public void financing() {
        System.out.println("我要理财了。。。。开始了");
        agent.financing();
        System.out.println("我要理财了。。。。结束了");
    }
}
